<?php
class CollectionController extends  IndexController 
{
	public function init()
    {
		parent::init();
        $this->utl             = Yaf_Registry::get("utl");
        $this->CollectionModel = new CollectionModel();
    }

    public function listAction()
    {
    	date_default_timezone_set('PRC');
        $arr = array();
    	$nowDate = time();
    	for($i = 0; $i<7; $i++){
    		$getTime = $nowDate-3600*24*$i;
			$arr[$i] = date("Y-m-d ",$getTime);
    	}
    	//var_dump($arr);
    	$collArticle_info = $this->CollectionModel->selectCollInfoByTime($arr);
        //parent::init();
        //$collArticle_info=$this->Session->collArticle_info;
    	$this->getView()->assign("collArticle_info",$collArticle_info);
    	//var_dump($collArticle_info);
    }
}
?>